def run_cmd(cmd_str):
    from subprocess import run
    run(cmd_str, shell=True)


py_path = "C:\\Users\\21126\\.conda\\envs\\person\\python.exe "
file_path = "D:\\file\\学习\\神经网络\\neural_machine_translation_learn\\Final\\KNN.py "
opt1 = "--batch_size 128 --noise_dim 100 --generator_path ./models/generator1.pth"
opt2 = "--batch_size 128 --noise_dim 100 --generator_path ./models/generator2.pth --normal 1"
opt3 = "--batch_size 128 --noise_dim 100 --generator_path ./models/generator3.pth"
opt4 = "--batch_size 128 --noise_dim 100 --generator_path ./models/generator4.pth"
opt5 = "--batch_size 64 --noise_dim 100 --generator_path ./models/generator5.pth"
opt6 = "--batch_size 32 --noise_dim 100 --generator_path ./models/generator6.pth"
cmds = [py_path + file_path + opt1, py_path + file_path + opt2, py_path + file_path + opt3, py_path + file_path + opt4,
        py_path + file_path + opt5, py_path + file_path + opt6]


for j in range(5):
    run_cmd(cmds[3])
